package org.csu.mypetstorebackstage.persistence;

import org.csu.mypetstorebackstage.domain.Category;
import org.csu.mypetstorebackstage.domain.Item;
import org.csu.mypetstorebackstage.domain.Product;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryMapper {
    List<Category>getCategoryList();
    Category getCategory(String categoryId);
    List<Product> getProductAllByCategory(String categoryName);
    List<Category> getCategoryAll();
    Category getCategoryByName(String name);

    List<Product> getOnsell();
    List<Product> getOutshelf();
    List<Item> getItemByProductId(String productId);
    void updateOnShelf(String productId);
    void updateOutShelf(String productId);

}
